package com.weblog.user.client;


import com.weblog.user.client.factory.ArticleFallBackFactory;
import com.weblog.user.interceptor.FeignInterceptor;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author MaoLin Wang
 * @date 2019/9/2215:37
 */
@FeignClient(value = "weblog-article",fallbackFactory = ArticleFallBackFactory.class,configuration = FeignInterceptor.class)
public interface ArticleClient {

    /**
     * 根据文章id集合封装自定义分类的文章信息
     * @param aids 文章id集合
     * @return 文章信息集合
     */
    @GetMapping("article/client/cuc/articleInfo")
     Result cucArticle(@RequestParam List<String> aids);


}
